package com.shycloud.mido.opter.api.dto;

import com.shycloud.mido.opter.api.entity.OptOperator;

import lombok.Data;

@Data
public class OptInfoDTO extends OptOperator {
    
    String name;

    String area;

    String contact;

    String phone;

    String codeUrl;

    public String getArea(){
        String city = "";
        if(this.getCity() != null){
            city = " "+this.getCity();
        }
        return this.getProvince() + city;
    }

    //重写get访问方法拼接Url
    public String getCodeUrl(){
        return "http://192.168.0.127:8081?optId=" + this.getId();
    }

}